package com.yn.courseselectionsystem.dao;

import com.yn.courseselectionsystem.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @description: TODO
 * @author: Tokyo_God
 * @date: 2020/12/28 10:13
 * Role of:
 * @version: v1.0
 */

@Mapper
public interface UserDao {
    User selUserName(@Param("name") String name);
    User loginEmail(@Param("email") String email);
    User loginUser(@Param("name") String name,@Param("pwd") String pwd);

    User selUserEmail(@Param("email") String email);

    int upPwd(@Param("pwd") String pwd,@Param("email") String email);

    int upUser(User user);
}
